package com.wkbb.basic.feign;

import com.wkbb.common.constants.VersionConstant;
import com.wkbb.common.dto.ResultDTO;
import com.wkbb.common.dto.basic.UserDto;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "wkbb-order-service")
public interface OrderFeignService {

    @ApiOperation(value = "小鹅通注册")
    @RequestMapping(value = "/order/v1/GooseThirdUser/manage/registerGooseThirdUser", method = RequestMethod.POST)
    ResultDTO<UserDto> registerGooseThirdUser(
            @ApiParam(value = "用户信息", required = true, defaultValue = "1") @RequestBody(required = true) UserDto userDto);

    @ApiOperation(value = "用户订单查询")
    @RequestMapping(value = "/order/v1/payusercommodity/manage/getUserCommodityByUserId", method = RequestMethod.GET)
    ResultDTO getUserCommodityByUserId(
            @ApiParam(value = "用户Id", required = false) @RequestParam(name = "userId", required = false) Long userId
    );
}
